package cn.com.infcn.spider.domain;

import com.alibaba.fastjson.JSONObject;

/**
 * 所有的抽象类所集成
 * 
 * @author ansj
 *
 */
public abstract class Doc {
	private Object id; // 唯一标识

	private String message;

	private JSONObject result = new JSONObject(); //返回结果

	private JSONObject ctx = new JSONObject(); //上下文参数

	public Object getId() {
		return id;
	}

	public void setId(Object id) {
		this.id = id;
	};

	public JSONObject getCtx() {
		return ctx;
	}

	public void setCtx(JSONObject ctx) {
		this.ctx = ctx;
	}

	public JSONObject getResult() {
		return result;
	}

	public void setResult(JSONObject result) {
		this.result = result;
	}
	

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}
}
